package com.jdwa.yzp.mapper;

import com.jdwa.yzp.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface IUserMapper {
    //查询所有
    public List<User> selectAll();
    //根据id查询用户
    public User selectUserById(Long id);
    //登录
    public User selectUserByName(String name);
    //根据传入的值进行修改
    public int update(User user);
    //新增
    public int insert(User user);
    //删除
    public int delete(Long id);
}
